﻿using AntBlazor.Extensions;

namespace AntBlazor.Components;

/// <summary>
/// 数值框组件类。
/// </summary>
public partial class AntNumber
{
    /// <inheritdoc />
    protected override async Task OnInitializedAsync()
    {
        await base.OnInitializedAsync();
        Attributes.AddItem("role", "spinbutton");
        Attributes.AddItem("step", "1");
        Attributes.AddItem("inputmode", "decimal");
    }
}